From: Alan Date: Wed, 2 Aug 2017 09:30:48 +0000 (+0000) Subject: Remove useless test X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~888^2^2~13 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a2860e9c732a65eaf7d48e45cfa74e456d065302;p=gnome-shell.git Remove useless test --- diff --git a/cldr2json.py b/cldr2json.py index 7420f7cda..a9633d77f 100755 --- a/cldr2json.py +++ b/cldr2json.py @@ -48,12 +48,8 @@ LOCALE_TO_XKB_OVERRIDES = { def parse_single_key(value): - if hasattr(__builtins__, 'unichr'): - def unescape(m): - return chr(int(m.group(1), 16)) - else: - def unescape(m): - return chr(int(m.group(1), 16)) + def unescape(m): + return chr(int(m.group(1), 16)) value = ESCAPE_PATTERN.sub(unescape, value) return value